package org.ipccenter.balancechecker.services;
import org.ipccenter.balancechecker.listener.Listener;

public class Service1 extends ServiceType  {

    private String name;
    private String username;
    private String password;
    private Listener listener;

    public void setListener(Listener listener) {
        this.listener = listener;
    }

    public Listener getListener() {
        return this.listener;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return this.name;
    }

    public String getPassword() {
        return this.password;
    }

    public String getUsername() {
        return this.username;
    }

    @Override
    public String toString() {
        return "Class Object: " + this.getClass().getName() + " with fields: name  = " +
                this.name + "; username = " + this.username + "; password = " + this.password;
    }

}
